//
//  NewsViewController.m
//  Chat
//
//  Created by 任伟 on 16/1/4.
//  Copyright © 2016年 任伟. All rights reserved.
//

#import "NewsViewController.h"
#import "RWNewsChannelView.h"
#import "RWCollectionViewLayout.h"

#define kWIDTH [UIScreen mainScreen].bounds.size.width
#define kHEIGHT [UIScreen mainScreen].bounds.size.height

@interface NewsViewController ()

@end

@implementation NewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    RWCollectionViewLayout *layout = [[RWCollectionViewLayout alloc] init];
    
    // 实例化新闻频道界面
    RWNewsChannelView *channelView = [[RWNewsChannelView alloc] initWithFrame:CGRectMake(0, 65, kWIDTH, 35) collectionViewLayout:layout];
    
    [self.view addSubview:channelView];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
